Resource URL: /platform/<<version=3>>/cluster/nodes/<LNN>/state/smartfail

    Overview: This resource applies the standard collection pattern to
              individual nodes.  LNN in the resource path is the node lnn ID.

     Methods: GET, PUT

********************************************************************************

Method GET: Retrieve node smartfail state information.

       URL: GET /platform/<<version=3>>/cluster/nodes/<LNN>/state/smartfail

There are no query arguments for this method.

GET response body schema:
{
  "type": [
    {
      "additionalProperties": false, 
      "type": "object", 
      "description": "A list of errors that may be returned.", 
      "properties": {
        "errors": {
          "items": {
            "additionalProperties": false, 
            "type": "object", 
            "description": "An object describing a single error.", 
            "properties": {
              "field": {
                "type": "string", 
                "description": "The field with the error if applicable."
              }, 
              "message": {
                "type": "string", 
                "description": "The error message."
              }, 
              "code": {
                "type": "string", 
                "description": "The error code."
              }
            }
          }, 
          "type": "array"
        }
      }
    }, 
    {
      "type": "object", 
      "properties": {
        "total": {
          "type": "integer", 
          "description": "The total number of nodes responding."
        }, 
        "nodes": {
          "items": {
            "type": "object", 
            "description": "Node smartfail state.", 
            "properties": {
              "status": {
                "required": false, 
                "minimum": 0, 
                "type": "integer", 
                "description": "Status of the HTTP response from this node if not 200.  If 200, this field does not appear.", 
                "maximum": 4294967295
              }, 
              "smartfailed": {
                "type": "boolean", 
                "description": "This node is smartfailed (soft_devs)."
              }, 
              "dead": {
                "type": "boolean", 
                "description": "This node is dead (dead_devs)."
              }, 
              "down": {
                "type": "boolean", 
                "description": "This node is down (down_devs)."
              }, 
              "readonly": {
                "type": "boolean", 
                "description": "This node is readonly (ro_devs)."
              }, 
              "lnn": {
                "minimum": 0, 
                "type": "integer", 
                "description": "Logical node number of the node reporting this information.", 
                "maximum": 4294967295
              }, 
              "error": {
                "required": false, 
                "type": "string", 
                "description": "Error message, if the HTTP status returned from this node was not 200."
              }, 
              "in_cluster": {
                "type": "boolean", 
                "description": "This node is in the cluster (all_devs)."
              }, 
              "id": {
                "minimum": 0, 
                "type": "integer", 
                "description": "Node ID of the node reporting this information.", 
                "maximum": 4294967295
              }, 
              "shutdown_readonly": {
                "type": "boolean", 
                "description": "This node is shutdown readonly (down_devs)."
              }
            }
          }, 
          "type": "array", 
          "description": "The responses from the individual nodes involved in this request."
        }, 
        "errors": {
          "items": {
            "type": "object", 
            "properties": {
              "status": {
                "minimum": 0, 
                "type": "integer", 
                "description": "HTTP Status code returned by this node.", 
                "maximum": 4294967295
              }, 
              "message": {
                "type": "string", 
                "description": "More detailed description of the error."
              }, 
              "code": {
                "type": "string", 
                "description": "The general meaning of the status code."
              }, 
              "lnn": {
                "minimum": 0, 
                "type": "integer", 
                "description": "Logical node number of the node reporting this error.", 
                "maximum": 4294967295
              }
            }
          }, 
          "type": "array", 
          "description": "A list of errors encountered by the individual nodes involved in this request, or an empty list if there were no errors."
        }
      }
    }
  ]
}

********************************************************************************

Method PUT: Modify smartfail state of the node.  Only the 'smartfailed' body
            member has any effect on node smartfail state.

       URL: PUT /platform/<<version=3>>/cluster/nodes/<LNN>/state/smartfail

There are no query arguments for this method.

PUT request body schema:
{
  "type": "object", 
  "description": "Node smartfail state.", 
  "properties": {
    "smartfailed": {
      "type": "boolean", 
      "description": "This node is smartfailed (soft_devs)."
    }, 
    "dead": {
      "type": "boolean", 
      "description": "This node is dead (dead_devs)."
    }, 
    "down": {
      "type": "boolean", 
      "description": "This node is down (down_devs)."
    }, 
    "readonly": {
      "type": "boolean", 
      "description": "This node is readonly (ro_devs)."
    }, 
    "in_cluster": {
      "type": "boolean", 
      "description": "This node is in the cluster (all_devs)."
    }, 
    "shutdown_readonly": {
      "type": "boolean", 
      "description": "This node is shutdown readonly (down_devs)."
    }
  }
}

There is no JSON response body for this method.
